package top.toptimus.dto.saleStyle;

import lombok.Data;
import lombok.NoArgsConstructor;
import top.toptimus.constValue.StockInOutType;
import top.toptimus.dto.stock.StockInOutDetailDTO;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 销售款式定义
 *
 * @author gaoyu
 */
@Data
@NoArgsConstructor
public class SaleStyleDTO {
    private String id;
    private String saleStyleCode;   //  款号，销售定义
    private String styleTag;    //  款式描述
    private String styleSexFlag;   //  男 女 男童 女童

    private String sytleCategoryId; //  款式类别ID
    private String sytleCategoryCode;   //  款式类别编码
    private String sytleCategoryName;   //  款式类别名称

    private String designStyleId;   //  设计款id，设计科提供
    private String designStyleCode; //  设计款号，设计科提供
    private String designStyleName; //  设计款名，设计科提供
    private String designStyleCADFilePath; //  设计款CAD文件，设计科提供

    private Boolean deprecated; //  是否废弃
    private Date createDate;    //  创建时间

    public SaleStyleDTO(
            String id,
            String saleStyleCode,
            String styleTag,
            String styleSexFlag,
            String sytleCategoryId,
            String sytleCategoryCode,
            String sytleCategoryName,
            String designStyleId,
            String designStyleCode,
            String designStyleName,
            String designStyleCADFilePath,
            Boolean deprecated,
            Date createDate
    ) {
        this.id = id;
        this.saleStyleCode = saleStyleCode;
        this.styleTag = styleTag;
        this.styleSexFlag = styleSexFlag;
        this.sytleCategoryId = sytleCategoryId;
        this.sytleCategoryCode = sytleCategoryCode;
        this.sytleCategoryName = sytleCategoryName;
        this.designStyleId = designStyleId;
        this.designStyleCode = designStyleCode;
        this.designStyleName = designStyleName;
        this.designStyleCADFilePath = designStyleCADFilePath;
        this.deprecated = deprecated;
        this.createDate = createDate;
    }

//    public SaleStyleDTO build(Map<String, List<StockInOutDetailDTO>>stringListMap) {
//        this.stockInOutDetailDTOSFactorySaleOut = stringListMap.get(StockInOutType.FactorySaleOut);
//        this.stockInOutDetailDTOSFactorySaleOutRecent = stringListMap.get(StockInOutType.FactorySaleOut + "Recent");
//        this.stockInOutDetailDTOSShopSaleOut = stringListMap.get(StockInOutType.ShopSaleOut);
//        this.stockInOutDetailDTOSShopSaleOutRecent = stringListMap.get(StockInOutType.ShopSaleOut + "Recent");
//        return this;
//    }
}
